#include "edgeWord.h"

USING_NS_CC;

edgeWord::edgeWord(void)
{
}


edgeWord::~edgeWord(void)
{
}

bool edgeWord::init()
{
	if (!Node::init())
	{
		return false;
	}

	Size visibleSize=Director::getInstance()->getVisibleSize();
	auto land=Sprite::create("land.png");
	Size landSize=land->getContentSize();

	this->setPhysicsBody(PhysicsBody::createEdgeBox(Size(visibleSize.width,visibleSize.height-landSize.height)));
	this->setContentSize(Size(visibleSize.width,visibleSize.height-landSize.height));

	this->setPosition(visibleSize.width/2,visibleSize.height/2+landSize.height/2);

	return true;
}
